<?php
/**
 * True Gallery Default layout
 *
 * @version 2.5
 * @author Alexey N. Brin (userxp@joomlaportal.ru)
 * @homepage http://truegallery.ru 
 * @filename default.php
 * @package True Gallery
 * @copyright (C) 2008-2009 by joomlatune.ru
 * @license GNU/GPL: http://www.gnu.org/copyleft/gpl.html
 * 
 * THIS GALLERY is an EVOLUTION of AkoGallery -> PonyGallery -> DatsoGallery
 *
 * If you fork this to create your own project, 
 * please make a reference to True Gallery someplace in your code 
 * and provide a link to http://www.joomlatune.ru
 *
 **/

defined('_VALID_MOS') or defined('_JEXEC') or die('Direct Access to this location is not allowed.');

// just simply connects /views/default/tmpl/default.php
include_once TG_VIEWSPATH.'default'.DSX.'tmpl'.DSX.'default.php';

if( JTuneConfig::is_admin() ) {

} else {
	// append default.css style
	appendStyle( 'default' );

	class JTrueLayoutRouter extends JTruePicturesRouterSite
	{
		function view( $picid=0, $tmpl='picture.view' ){
			// Lightbox is preffered to go BEFORE Galleria
			include_once( TG_ADMINPATH.'plugins'.DSX.'lightbox'.DSX.'lightbox.php' );
			//getPlugin( 'lightbox', true );
			parent::view( $picid, $tmpl );
		}
	}

}
?>